<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title></title>
	<style type="text/css">
		div{
			width: 400px;
			height: 400px;
			background: orange;
			position: absolute;
		}
	</style>
</head>
<body>
	<button>开始</button>
	<div></div>
	<script type="text/javascript" src="../jquery-3.2.1.js"></script>
	<script type="text/javascript">
		$('button').click(() => {
			/*
				animate(a, b, c, d) 动画
					a: css样式
					b:动画完成时间 ms fast/slow
					c:动画完成的速度  linear
					d:回调函数

			*/
			$('div').animate({
				width: "200px",
				height: "200px"
			}, 1000)
			.animate({
				left: 800,
			}, 2000)
			.animate({
				top: 500,
			}, 2000)
		})
	</script>
</body>
</html>